XContainer
holding node and link data, replace this model's NodesSource and LinksSource collections with collections of new node data and new link data.
Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Load (Of NodeDataType As GraphLinksModelNodeData(Of NodeKey), LinkDataType As GraphLinksModelLinkData(Of NodeKey,PortKey))( _ ByVal root As XContainer, _ ByVal nodename As XName, _ ByVal linkname As XName _ ) |
C# | |
---|---|
public void Load<NodeDataType,LinkDataType>( XContainer root, XName nodename, XName linkname )where NodeDataType: GraphLinksModelNodeData<NodeKey> where LinkDataType: GraphLinksModelLinkData<NodeKey,PortKey> |
Parameters
- root
- the
XContainer
holding all of the data - nodename
- the name of each
XElement
holding node data - linkname
- the name of each
XElement
holding link data
Type Parameters
- NodeDataType
- this must be a Northwoods.GoXam.Model.GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
- LinkDataType
- this must be a Northwoods.GoXam.Model.GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor
All of the changes to this model are performed within a transaction.
This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.